package com.coders.silpa;

public class employee {
	// Example for a Static variable  
	static int empid;
	public employee()
	{
		
	  empid=empid+1;
	}
		
		void displayid(){
			System.out.println("Employee Id is" +empid);
		}
	public static void main(String args[])
	{
		employee emp1,emp2;
		emp1=new employee();
		emp1.displayid();
		emp2=new employee();
		emp2.displayid();
	}
	

}
